/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const DefaultRouterMap = [
  {
    path: '/login',
    component: resolve => require(['@/views/login/index'], resolve),
    hidden: true
  },
  {
    path: '/',
    component: Layout,
    redirect: '/homepage/index',
    name: '默认',
    hidden: true
  },
  {
    path: '/homepage',
    component: Layout,
    redirect: '/homepage/index',
    children: [
      {
        path: 'index',
        name: '首页',
        component: resolve => require(['@/views/index'], resolve),
        meta: { title: '首页', icon: 'icon', power: 'index' }
      }
    ]
  }
]

export default DefaultRouterMap;
